#include <asteroid/Player.hpp>

#include <SFML/Graphics.hpp>

sf::RectangleShape* Player::getShoot()
{
	sf::RectangleShape* shoot = new sf::RectangleShape({10, 20});
	shoot->setFillColor(sf::Color::Yellow);
	sf::FloatRect playerRect = this->getGlobalBounds();
	shoot->setPosition({playerRect.left + (playerRect.width / 2) - 5, playerRect.top - 20});

	return shoot;
}
